package com.yty.system.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "orderService", url = "${order.url}", fallback = SeoulHistricService.class)
public interface OrderFeignInterface {

    @GetMapping("order/queryByOrderId")
    String queryByOrderId(@RequestParam(value = "orderId") String orderId);

    @GetMapping("order/list")
    String list(@RequestBody JSONObject jsonObject);
}
